#include <iostream>

using namespace std;

int main()
{
    int m, a, b, p, q;
    while (cin >> m >> a >> b && (m!=0||a!=0||b!=0))
    {

        cout << p <<" "<< q << endl;
    }
    return 0;
}
